package com.xiaolong.common.exception;

import com.xiaolong.common.constant.SystemCodeConstant;

import java.io.Serial;

public class ProgramExceptions extends BusinessException {


    @Serial
    private static final long serialVersionUID = 6481735171842797191L;

    public ProgramExceptions() {
        setCode(SystemCodeConstant.PROGRAM_FAIL_CODE);
    }

    public ProgramExceptions(String message) {
        super(message);
        setCode(SystemCodeConstant.PROGRAM_FAIL_CODE);
    }

    public ProgramExceptions(Throwable cause) {
        super(cause);
        setCode(SystemCodeConstant.PROGRAM_FAIL_CODE);
    }

    public ProgramExceptions(String message, Throwable cause) {
        super(message, cause);
        setCode(SystemCodeConstant.PROGRAM_FAIL_CODE);
    }
}
